package com.wu;

import lombok.Getter;
import lombok.Setter;

/**
 * @description: <br>
 * @date: 2020/6/15 <br>
 * @author: fei.wu <br>
 */

@Getter
@Setter
public class ManJianRule implements Rule {


    @Override
    public Integer invoke(Context context,Integer price){
        System.out.println("满减活动.");
        if (price >= 100){
            price = price - 10;
        }
        price = context.invokeNext(price);
        return price;
    }

}
